<template>
  <div>
    <el-container style="height: 500px; border: 1px solid #eee">
      <el-aside width="200px" style="background-color: rgb(238, 241, 246)">
        <el-menu :default-openeds="['1', '3']">
          <el-submenu index="1">
            <template slot="title"
              ><i class="el-icon-s-data"></i>数据</template
            >
            <el-menu-item-group>
              <!-- <el-menu-item index="1-1" @click="Upload">上传数据</el-menu-item>
              <el-menu-item index="1-2" @click="Change">修改数据</el-menu-item> -->
              <el-menu-item index="1-1"
                ><router-link to="/upload" style="text-decoration: none"
                  >上传数据</router-link
                ></el-menu-item
              >
              <el-menu-item index="1-2"
                ><router-link to="/list" style="text-decoration: none"
                  >修改数据</router-link
                ></el-menu-item
              >
            </el-menu-item-group>
          </el-submenu>
          <el-submenu index="2">
            <template slot="title"><i class="el-icon-pie-chart"></i>绘制</template>
            <!-- <el-menu-item-group>
              <el-menu-item index="2-1" @click="Bar">柱状图</el-menu-item>
              <el-menu-item index="2-2" @click="Line">折线图</el-menu-item>
            </el-menu-item-group> -->
            <el-menu-item-group>
              <el-menu-item index="2-1"
                ><router-link to="/bar" style="text-decoration: none"
                  >柱状图</router-link
                ></el-menu-item
              >
              <el-menu-item index="2-2"
                ><router-link to="/line" style="text-decoration: none"
                  >折线图</router-link
                ></el-menu-item
              >
              <el-menu-item index="2-3"
                ><router-link to="/ring" style="text-decoration: none"
                  >环状图</router-link
                ></el-menu-item
              >
              <el-menu-item index="2-3"
                ><router-link to="/funnel" style="text-decoration: none"
                  >漏斗图</router-link
                ></el-menu-item
              >
              <el-menu-item index="2-3"
                ><router-link to="/waterfall" style="text-decoration: none"
                  >瀑布图</router-link
                ></el-menu-item
              >
            </el-menu-item-group>
          </el-submenu>
          <el-submenu index="3">
            <template slot="title"
              ><i class="el-icon-message"></i>关于</template
            >
            <!-- <el-menu-item-group>
              <el-menu-item index="3-1" @click="Blog">博客</el-menu-item>
              <el-menu-item index="3-2" @click="Repository">仓库</el-menu-item>
            </el-menu-item-group> -->
            <el-menu-item-group>
              <el-menu-item index="3-1"
                ><router-link to="/blog" style="text-decoration: none"
                  >博客</router-link
                ></el-menu-item
              >
              <el-menu-item index="3-2"
                ><router-link to="/repository" style="text-decoration: none"
                  >仓库</router-link
                ></el-menu-item
              >
            </el-menu-item-group>
          </el-submenu>
        </el-menu>
      </el-aside>

      <el-container>
        <el-header style="text-align: right; font-size: 12px">
          <h2
            style="text-align: left; color: white; font-size: 20px; float: left"
          >
            Hong-AI数据可视化平台
          </h2>
          <!-- <span style="color: white"> 用户编号：{{ uid }} </span> -->
          <span style="color: white">version:1.0.1</span>
          <el-dropdown>
            <i class="el-icon-circle-close" style="margin-right: 15px"></i>
            <el-dropdown-menu slot="dropdown">
              <!-- <el-dropdown-item>修改</el-dropdown-item> -->
              <el-dropdown-item>
                <router-link to="/" style="text-decoration: none"
                  >退出</router-link
                >
              </el-dropdown-item>
            </el-dropdown-menu>
          </el-dropdown>
        </el-header>

        <!-- 提示对话框 -->
        <el-container>
          <el-button type="text" @click="centerDialogVisible = true"
            >使用说明</el-button
          >

          <el-dialog
            title="提示"
            :visible.sync="centerDialogVisible"
            width="30%"
            center
          >
            <span></span>
            <p style="color: green">使用流程：上传数据——>(数据修改)——>数据可视化</p>
            <span slot="footer" class="dialog-footer">
              <el-button @click="centerDialogVisible = false">取 消</el-button>
              <el-button type="primary" @click="centerDialogVisible = false"
                >确 定</el-button
              >
            </span>
          </el-dialog>
        </el-container>


        <router-view></router-view>

        <el-card>
          <img alt="Vue logo" style="width:400px;height: 400px;" src="@/assets/logoH.png" />
        </el-card>  

        
      
      </el-container>
    </el-container>
  </div>
</template>

<style>
.el-header {
  background-color: #b3c0d1;
  color: #333;
  line-height: 60px;
}

.el-aside {
  color: #333;
}
</style>

<script>
export default {
  data() {
    return {
      //date: '2016-05-02',
      //name: '王小虎',
      //address: '上海市普陀区金沙江路 1518 弄',
      uid: this.$route.params.uid,
      centerDialogVisible: false,
      tableData: [], // 数据列表
      dialogVisible_add: false, // 新增弹窗控制器
      dialogVisible_up: false, // 新增弹窗控制器
      data: {
        // 数据封装
        x: '',
        y: '',
      },
    }
  },
  created: function () {},
  methods: {
    // Upload() {
    //   //  调用路由跳转组件显示
    //   this.$router.push({
    //     name: 'UploadView',
    //     // params: {
    //     //   uid: this.user.uid,
    //     // },
    //   })
    // },
    // Change() {
    //   //  调用路由跳转组件显示
    //   this.$router.push({
    //     name: 'ChangeView',
    //     // params: {
    //     //   uid: this.user.uid,
    //     // },
    //   })
    // },
    // Bar(){
    //   this.$router.push({
    //     name: 'BarView',
    //     // params: {
    //     //   uid: this.user.uid,
    //     // },
    //   })
    // },
    // Line(){
    //   this.$router.push({
    //     name: 'LineView',
    //     // params: {
    //     //   uid: this.user.uid,
    //     // },
    //   })
    // },
    // Blog(){
    //   this.$router.push({
    //     name: 'BlogView',
    //     // params: {
    //     //   uid: this.user.uid,
    //     // },
    //   })
    // },
    // Repository(){
    //   this.$router.push({
    //     name: 'RepositoryView',
    //     // params: {
    //     //   uid: this.user.uid,
    //     // },
    //   })
    // }
  },
}
</script>
